package com.ydy.service;

import com.ydy.domain.Student;
import com.ydy.vo.Studentvo;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;

import javax.swing.*;
import java.util.List;

public interface StudentBiz {
    @Transactional(rollbackFor = Exception.class)
void insertStudent(Student student);



    void updateStudentByName(Student student);

    void deleteById(Integer id);
    Studentvo getStudentvo(Integer id );
    void       addStudent( Studentvo studentvo);
    Studentvo getSrudentvowithRedis(String name);
    boolean checkName(String name,String password);

    Studentvo getSrudentvowithAccount(String name);
}
